package router

import (
	"github.com/gin-gonic/gin"
	"github.com/samber/do/v2"

	"gitee.com/monkeyPP/happy-mall/services/productservice/internal/interfaces/api/handler"
)

func RegisterRoutes(router *gin.Engine, i do.Injector) {

	productHandler := do.MustInvoke[handler.ProductHandler](i)

	v1 := router.Group("/api/v1")
	product := v1.Group("/product")

	{
		product.POST("/add", productHandler.AddProduct)
	}
}
